
package com.submaxim_testdb.data;

import java.io.Serializable;
import java.util.Date;


/**
 *  submaxim_testDB.Groups40Id
 *  11/10/2011 17:39:29
 * 
 */
public class Groups40Id
    implements Serializable
{

    private Integer groupid;
    private Integer subscriberid;
    private Date requestdate;
    private String requestip;
    private String confirmkey;
    private Date confirmdate;
    private Date canceldate;

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof Groups40Id)) {
            return false;
        }
        Groups40Id other = ((Groups40Id) o);
        if (this.groupid == null) {
            if (other.groupid!= null) {
                return false;
            }
        } else {
            if (!this.groupid.equals(other.groupid)) {
                return false;
            }
        }
        if (this.subscriberid == null) {
            if (other.subscriberid!= null) {
                return false;
            }
        } else {
            if (!this.subscriberid.equals(other.subscriberid)) {
                return false;
            }
        }
        if (this.requestdate == null) {
            if (other.requestdate!= null) {
                return false;
            }
        } else {
            if (!this.requestdate.equals(other.requestdate)) {
                return false;
            }
        }
        if (this.requestip == null) {
            if (other.requestip!= null) {
                return false;
            }
        } else {
            if (!this.requestip.equals(other.requestip)) {
                return false;
            }
        }
        if (this.confirmkey == null) {
            if (other.confirmkey!= null) {
                return false;
            }
        } else {
            if (!this.confirmkey.equals(other.confirmkey)) {
                return false;
            }
        }
        if (this.confirmdate == null) {
            if (other.confirmdate!= null) {
                return false;
            }
        } else {
            if (!this.confirmdate.equals(other.confirmdate)) {
                return false;
            }
        }
        if (this.canceldate == null) {
            if (other.canceldate!= null) {
                return false;
            }
        } else {
            if (!this.canceldate.equals(other.canceldate)) {
                return false;
            }
        }
        return true;
    }

    public int hashCode() {
        int rtn = 17;
        rtn = (rtn* 37);
        if (this.groupid!= null) {
            rtn = (rtn + this.groupid.hashCode());
        }
        rtn = (rtn* 37);
        if (this.subscriberid!= null) {
            rtn = (rtn + this.subscriberid.hashCode());
        }
        rtn = (rtn* 37);
        if (this.requestdate!= null) {
            rtn = (rtn + this.requestdate.hashCode());
        }
        rtn = (rtn* 37);
        if (this.requestip!= null) {
            rtn = (rtn + this.requestip.hashCode());
        }
        rtn = (rtn* 37);
        if (this.confirmkey!= null) {
            rtn = (rtn + this.confirmkey.hashCode());
        }
        rtn = (rtn* 37);
        if (this.confirmdate!= null) {
            rtn = (rtn + this.confirmdate.hashCode());
        }
        rtn = (rtn* 37);
        if (this.canceldate!= null) {
            rtn = (rtn + this.canceldate.hashCode());
        }
        return rtn;
    }

    public Integer getGroupid() {
        return groupid;
    }

    public void setGroupid(Integer groupid) {
        this.groupid = groupid;
    }

    public Integer getSubscriberid() {
        return subscriberid;
    }

    public void setSubscriberid(Integer subscriberid) {
        this.subscriberid = subscriberid;
    }

    public Date getRequestdate() {
        return requestdate;
    }

    public void setRequestdate(Date requestdate) {
        this.requestdate = requestdate;
    }

    public String getRequestip() {
        return requestip;
    }

    public void setRequestip(String requestip) {
        this.requestip = requestip;
    }

    public String getConfirmkey() {
        return confirmkey;
    }

    public void setConfirmkey(String confirmkey) {
        this.confirmkey = confirmkey;
    }

    public Date getConfirmdate() {
        return confirmdate;
    }

    public void setConfirmdate(Date confirmdate) {
        this.confirmdate = confirmdate;
    }

    public Date getCanceldate() {
        return canceldate;
    }

    public void setCanceldate(Date canceldate) {
        this.canceldate = canceldate;
    }

}
